﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Miao.ArchotechFix
{
    public class CompProperties_ArchoDroidHediffComp : CompProperties
    {
        public CompProperties_ArchoDroidHediffComp()
        {
            this.compClass = typeof(ArchoDroidHediffComp);
        }
    }




    public class ArchoDroidHediffComp : ThingComp
    {
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            base.PostSpawnSetup(respawningAfterLoad);
            Pawn pawn = (parent as Pawn);
            //HediffComp_PsychicHarmonizer
            Hediff hediff =  pawn.health.AddHediff(RimWorld.HediffDefOf.PsychicAmplifier, pawn.health.hediffSet.GetBrain());
            Hediff_Psylink hediff_Psylink = (hediff as Hediff_Psylink);
            hediff_Psylink.level = 6;
            //hediff.Severity = 6;//按照里灵能就变化为6了

            //HediffDef hediffDef =  DefDatabase<HediffDef>.GetNamed("PsyfocusRegeneration");

            pawn.health.AddHediff(HediffDefOf.ArchoDroidHediff);

        }
    }
}
